package com.shangxian.giveithome.entity.community;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Carousel {

    //轮播图id
    private Long id;

    //图片路径
    private String picture;

    //图片优先级
    private Long level;

    //图片状态
    private Long state;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
